<?php
Zend::loadClass('Lead_EDO_Datatype_Field');

/**
 * Datatype for char (string?)
 * 
 * @package EDO
 * @subpackage Datatypes
 *
 */
class Lead_EDO_Datatype_Char extends Lead_EDO_Datatype_Field
{
	protected $_SQLValueIsQuoted = true;

	function validate($validate)
	{
		if(!$this->notNull() AND is_null($validate))
			return null;
		
		if(is_string($validate))
		{
			
		    // char max size WENT BROKEN WHEN CHANGED TO ZEND_DB!!! Irritating.
		    
		    // if(strlen($validate) <= $this->getMaxSize())
			// {
			    return $validate;
			// }
			
		
			
		}
		
		
		return false;
		
	}
	
	
	
}
?>